{% extends "domains/form.html" %}
{% block title %}HCP - Domain - {{ domain.hcpDomainName[0] }}{% endblock %}

{% set form_action = url('hcp-domains-edit', domain.dn) %}

{% block torso %}
<!-- MEDIA include json connection container button dragdrop animation /js/delete.js -->
<button id="hcp-delete-button">Delete This Domain</button>
<h1>Edit Domain {{ domain.hcpDomainName[0] }}</h1>
{{ super() }}
{% endblock %}

{% block js %}
{{ super() }}
<script type="text/javascript">

function init() {
  delete_init("domain", "{{ domain.hcpDomainName[0] }}",
              "{{ url('hcp-domains-delete', domain.dn) }}",
              "{{ url('hcp-domains') }}");

}

YAHOO.util.Event.addListener(window, "load", init);
</script>
{% endblock %}
